#export PATH=/usr/local/kaldi/tools/openfst-1.6.7/bin:$PATH
#export PATH=/home/work_nfs5_ssd/pcguo/code/kaldi/src/fstbin:$PATH
#export PATH=/home/work_nfs5_ssd/pcguo/code/kaldi/src/lmbin:$PATH

export PATH=/home/work_nfs15/asr_data/ckpt/xlgeng/word_seg/fstbin:$PATH
export PATH=/home/work_nfs15/asr_data/ckpt/xlgeng/word_seg/lmbin:$PATH

export PATH=/home/work_nfs15/asr_data/ckpt/xlgeng/word_seg/srilm/path/bin:$PATH
export PATH=/home/work_nfs15/asr_data/ckpt/xlgeng/word_seg/srilm/bin:$PATH
export PATH=/home/work_nfs15/asr_data/ckpt/xlgeng/word_seg/srilm/lm/bin/i686-m64:$PATH

output_dir='./data_2gram_asrdata'
output_dir='./gxl_arpa_zoo/poi_text/xian'
# 第一个目录是输入，需要含有unit.txt和lexicon.txt。 第二个目录是tmp。第三个目录是输出目录。
bash tools/fst/compile_lexicon_token_fst.sh \
    ${output_dir}/local/dict ${output_dir}/local/tmp ${output_dir}/local/lang


bash tools/fst/make_tlg.sh ${output_dir}/local/lm ${output_dir}/local/lang ${output_dir}/lang_test || exit 1;

